package interface_class;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/9/22 21:10
 */
public class Duck implements ISwim, IRun, IFly {
    @Override
    public void fly() {
        System.out.println("鸭子飞起来了");
    }

    @Override
    public void run() {
        System.out.println("鸭子在陆地跑步");
    }

    @Override
    public void swim() {
        System.out.println("鸭子在游泳");
    }
}
